package cn.leaf.web.annotation;

import java.lang.annotation.*;

/**
 *
 * description: 是否启用自动获取用户信息注解
 *
 * 样例：public Object getUser(@EnableUser LoginUser user)
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-07 10:36:14
 * slogan: There are no two identical leaves in the world.
 *
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface EnableUser {

    /**
     * 是否查询LoginUser对象所有信息，true则通过rpc接口查询
     */
    boolean value() default false;
}
